//
// Created by wkm on 2023-12-06.
//

#include "simple_alu.h"

void simple_alu::prc_simple_alu() {
    if (ctrl) {
        z = a.read() & b.read();
    } else {
        z = a.read() | b.read();
    }
}